package com.liu.voluntary.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {

    SUCCESS(200, "SUCCESS"),


    ERROR(500, "服务器异常"),

    REGISTER_REPEAT(500201,"注册失败,用户已经存在,请重新进行注册"),
    REGISTER_ERROR(500202,"注册失败,手机号格式输入不正确,请重新进行注册"),
    REGISTER_SUCCESS(500203,"注册成功，点击登录"),
    LOGIN_ERROR(500210, "密码不正确"),
    MOBILE_ERROR(500211, "手机号格式不正确"),
    MOBILE_NOT_EXIST(500213, "手机号码不存在"),
    PASSWORD_UPDATE_FAIL(500214, "密码更新失败"),

    //秒杀
    ENTRY_STOCK(500500,"库存不足"),
    REPEAT_ERROR(500501,"该商品每人限购一件");



    private final Integer code;
    private final String message;


}
